package com.csw.mysqldate.fegin;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "testfegin", url = "${fls.url}", configuration = FeginTimeOutConfigure.class)
public interface TestService {


    @GetMapping(value = "/mysqldate/testfegin/noneReceive")
    void noneReceive();

    @GetMapping(value = "/mysqldate/testfegin/iddReceive")
    void testIdReceive(@RequestParam("id") String id);//注意

    @PostMapping(value = "/mysqldate/testfegin/objectReceive")
    void testObjectReceive(@RequestBody JSONObject jsonObject);


}
